import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsStable {
  dangerReaction: string;
  fireGoods: string;
  forbidGoods: string;
  forbidTouch: string;
  polymerizationFlag: boolean;
  stableFlag: boolean;
  msdsEntprId?: number;
  id?: number;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsStableHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsStable 信息*/
  public addMsdsStable(param: MsdsStable): Observable<number> {
    return this.http.post('/msdsStable', param, {needSuccessInfo: true});
  }

  /*修改msdsStable信息*/
  public editMsdsStable(param: MsdsStable): Observable<void> {
    return this.http.put('/msdsStable', param, {needSuccessInfo: true});
  }

  /*查询msdsStable详情*/
  public getMsdsStableDetail(msdsEntprId: number): Observable<MsdsStable> {
    return this.http.get('/msdsStable/' + msdsEntprId);
  }


}
